package com.entity;

/**
 * Created by Administrator on 2017/3/11.
 */
public class Userinfo {
    private String account;
    private String name;
    private String sex;
    private String birthday;
    private String cellphone;
    private String address;
    private String education;
    private String idCard;

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getCellphone() {
        return cellphone;
    }

    public void setCellphone(String cellphone) {
        this.cellphone = cellphone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Userinfo userinfo = (Userinfo) o;

        if (account != null ? !account.equals(userinfo.account) : userinfo.account != null) return false;
        if (name != null ? !name.equals(userinfo.name) : userinfo.name != null) return false;
        if (sex != null ? !sex.equals(userinfo.sex) : userinfo.sex != null) return false;
        if (birthday != null ? !birthday.equals(userinfo.birthday) : userinfo.birthday != null) return false;
        if (cellphone != null ? !cellphone.equals(userinfo.cellphone) : userinfo.cellphone != null) return false;
        if (address != null ? !address.equals(userinfo.address) : userinfo.address != null) return false;
        if (education != null ? !education.equals(userinfo.education) : userinfo.education != null) return false;
        if (idCard != null ? !idCard.equals(userinfo.idCard) : userinfo.idCard != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = account != null ? account.hashCode() : 0;
        result = 31 * result + (name != null ? name.hashCode() : 0);
        result = 31 * result + (sex != null ? sex.hashCode() : 0);
        result = 31 * result + (birthday != null ? birthday.hashCode() : 0);
        result = 31 * result + (cellphone != null ? cellphone.hashCode() : 0);
        result = 31 * result + (address != null ? address.hashCode() : 0);
        result = 31 * result + (education != null ? education.hashCode() : 0);
        result = 31 * result + (idCard != null ? idCard.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "Userinfo{" +
                "account='" + account + '\'' +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", birthday='" + birthday + '\'' +
                ", cellphone='" + cellphone + '\'' +
                ", address='" + address + '\'' +
                ", education='" + education + '\'' +
                ", idCard='" + idCard + '\'' +
                '}';
    }
}
